# coding=utf-8
"""
Created on 2010-8-10

@author: Morning BAI
"""

class Enum:
    pass

# 牌类型
cardType = Enum()
cardType.BASIC = 1 #基本牌
cardType.NON_DELAY_SKILL = 2 #非延时锦囊
cardType.DELAY_SKILL = 3 #延时锦囊
cardType.ATTACK_HORSE = 4 #-1马
cardType.DEFENCE_HORSE = 5 #+1马
cardType.WEPPON = 6 #武器
cardType.DEFENCE = 7 #防具
def _isEquipCard_(type):
    return cardType.ATTACK_HORSE <= type
cardType.isEquipCard = _isEquipCard_

# 牌花色
cardColor = Enum()
cardColor.DIANMOND = 0
cardColor.CLUB = 1
cardColor.HEART = 2
cardColor.SPADE = 3
colorStr = ['方块', '黑桃', '红桃', '梅花']
pointStr = ['0', 'A', '2', '3', '4', '5', '6', '7', '8', '9', '10', 'J', 'Q', 'K']

roleType = Enum()
roleType.ZG = '主公'
roleType.ZC = '忠臣'
roleType.FZ = '反贼'
roleType.NJ = '内奸'

campType = Enum()
campType.WEI = '魏'
campType.SHU = '蜀'
campType.WU  = '吴'
campType.QUN = '群'

userState = Enum()
userState.ROUND_BEGIN = 0
userState.JUDGE_BEGIN = 1
userState.ACTION_BEGIN = 2
userState.BE_SHA = 3
userState.IN_DUEL = 4
userState.ROUND_END = 5
userState.THROW_BEGIN = 6

